<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue-2.4.0.js"></script>
</head>

<body>
       <div id="app">
        <login></login>
        <template id="da">
            <h1>hhhh呆子东西</h1>
        </template>
       </div>
</body>
<script>
 
    Vue.component('mycoml',{
        template:'#haoy'
    })
    var vue = new Vue({
        el: '#app',
        data: {
          

        },
        methods: {
          
        },
        components:{
        // 没有小括号
            login:{
                template:'#da'
            }
        }
    })
  
</script>

</html>